package com.bst.common.vo;

import com.bst.common.utils.StringUtils;

import java.io.Serializable;
import java.util.List;

public class DimVO implements Serializable {

    private String idPubfld;
    private String alias;
    private String naPubfld;
    private String filter;//过滤
    private Boolean fgJoin; //是否需要关联字段表，一般根据编码、名称过滤时不需要关联
    private Integer fgHide=0; //关联字段或过滤字段隐藏显示
    private List<String> otherFlds;

    public DimVO() {

    }

    public DimVO(String idPubfld,String filter) {
           this.idPubfld = idPubfld;
           this.filter = filter;
    }

    public DimVO(String idPubfld,String filter,String alias) {
        this.idPubfld = idPubfld;
        this.filter = filter;
        this.alias = alias;
    }

    public List<String> getOtherFlds() {
        return otherFlds;
    }

    public void setOtherFlds(List<String> otherFlds) {
        this.otherFlds = otherFlds;
    }

    public Integer getFgHide() {
        return fgHide;
    }

    public void setFgHide(Integer fgHide) {
        this.fgHide = fgHide;
    }

    public String getAlias() {
        return StringUtils.isEmpty(alias)?idPubfld:alias;
    }

    public void setAlias(String alias) {
        this.alias = alias;
    }

    public Boolean getFgJoin() {
        return fgJoin;
    }

    public void setFgJoin(Boolean fgJoin) {
        this.fgJoin = fgJoin;
    }

    public String getNaPubfld() {
        return naPubfld;
    }

    public void setNaPubfld(String naPubfld) {
        this.naPubfld = naPubfld;
    }

    public String getIdPubfld() {
        return idPubfld;
    }

    public void setIdPubfld(String idPubfld) {
        this.idPubfld = idPubfld;
    }

    public String getFilter() {
        return filter;
    }

    public void setFilter(String filter) {
        this.filter = filter;
    }
}
